package com.zy.kotlinbaselibrary.net

import okhttp3.CookieJar
import okhttp3.Interceptor
import okhttp3.OkHttpClient

interface NetProvider {
    abstract fun configInterceptors(): Array<Interceptor>

    abstract fun configHttps(builder: OkHttpClient.Builder)

    abstract fun configCookie(): CookieJar?

//    RequestHandler configHandler();

    abstract fun configConnectTimeoutMills(): Long

    abstract fun configReadTimeoutMills(): Long

    abstract fun configLogEnable(): Boolean

//    boolean handleError(NetError error);

//    boolean dispatchProgressEnable();
}